package com.uchengwang.ui.cm_ui.ucity.cityBean;

import com.litesuits.orm.db.annotation.Column;
import com.uchengwang.functions.db.dbBean.DbBase;

/**
 * Created by U城网 on 2017/3/9.
 *
 * U学 U用 U行等共用的bean
 */
public class UcityInfoBean extends DbBase{
    @Column("id")
    private long id;

    @Column("pubTitle")
    private String pubTitle;


    @Column("pubShortDesc")
    private String pubShortDesc;//列表里的简介

    @Column("pubShortCover")
    private String pubShortCover;// 列表页显示封面图（暂定

    @Column("studyHost")
    private String studyHost;// 主讲人

    @Column("startTime")
    private long startTime;

    @Column("endTime")
    private long endTime;

    @Column("isLost")
    private boolean isLost;//失物招领内 物品是否为丢失 否则认为是拾取

    @Column("contact")
    private String contact;//失物招领内 联系电话

    @Column("contactPerson")
    private String contactPerson;//失物招领内 联系人

    @Column("pubTypeId")
    private long pubTypeId;

    @Column("pubAddr")
    private String pubAddr;

    @Column("rollImgs")
    private String rollImgs;

    @Column("pubType")
    private int pubType;

    private boolean isActive;

    @Column("createTime")
    private long createTime;

    @Column("itemLowPrice")
    private double itemLowPrice;//最低价,如果不是区间,就仅填此字段

    @Column("itemHighPrice")
    private double itemHighPrice;//最高价

    private String userAvatar;//发布人头像

    @Column("uid")
    private long uid;//发布人id

    private String nickName;//发布人昵称

    @Column("pubDescription")
    private String pubDescription;//描述

    private long uniId;

    private String uniName;//发布人学校
    private boolean isFollow;//是否关注
    private boolean isCollect;//是否收藏
    private boolean isLike;//是否点赞
    private boolean isEnroll;//是否报名
    private boolean isReport;//是否被举报
    private boolean isSell;//是否为出售,如果为否,则意为需求
    private long rcGroupId;//有创建群的话,这个字段不为空
    private String rcGroupLogo;
    private String rcGroupName;
    private boolean userDelete;//true 删除
    private int unreadNotice;//当有新的评论显示圆点
    private boolean isRecom;//本地添加 附近推荐
    private String banedReason;
    private int checkCount;
    private long modifyTime;
    private int isExamine;//0=未审核 1=通过 2=不通过

    private boolean isActEnroll;//true说明是参加社团分享季的

    private int examine;// 0=未审核 1=通过 2=未通过 自己定义的字段
    private int likeCount;//点赞数量

    private String author;//书籍作者

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public int getLikeCount() {
        return likeCount;
    }

    public void setLikeCount(int likeCount) {
        this.likeCount = likeCount;
    }

    public boolean isActEnroll() {
        return isActEnroll;
    }

    public void setActEnroll(boolean actEnroll) {
        isActEnroll = actEnroll;
    }

    public long getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(long modifyTime) {
        this.modifyTime = modifyTime;
    }

    public int getExamine() {
        return examine;
    }

    public void setExamine(int examine) {
        this.examine = examine;
    }

    public String getBanedReason() {
        return banedReason;
    }

    public void setBanedReason(String banedReason) {
        this.banedReason = banedReason;
    }

    public int getCheckCount() {
        return checkCount;
    }

    public void setCheckCount(int checkCount) {
        this.checkCount = checkCount;
    }

    public boolean isRecom() {
        return isRecom;
    }

    public void setRecom(boolean recom) {
        isRecom = recom;
    }

    public String getRemarkNickName() {
        return remarkNickName;
    }

    public void setRemarkNickName(String remarkNickName) {
        this.remarkNickName = remarkNickName;
    }

    private String remarkNickName;

    public int getIsExamine() {
        return isExamine;
    }

    public void setIsExamine(int isExamine) {
        this.isExamine = isExamine;
    }

    public long getUniId() {
        return uniId;
    }

    public void setUniId(long uniId) {
        this.uniId = uniId;
    }

    public int getUnreadNotice() {
        return unreadNotice;
    }

    public void setUnreadNotice(int unreadNotice) {
        this.unreadNotice = unreadNotice;
    }

    public boolean isUserDelete() {
        return userDelete;
    }

    public void setUserDelete(boolean userDelete) {
        this.userDelete = userDelete;
    }

    public long getRcGroupId() {
        return rcGroupId;
    }

    public void setRcGroupId(long rcGroupId) {
        this.rcGroupId = rcGroupId;
    }

    public String getRcGroupLogo() {
        return rcGroupLogo;
    }

    public void setRcGroupLogo(String rcGroupLogo) {
        this.rcGroupLogo = rcGroupLogo;
    }

    public String getRcGroupName() {
        return rcGroupName;
    }

    public void setRcGroupName(String rcGroupName) {
        this.rcGroupName = rcGroupName;
    }

    public boolean isFollow() {
        return isFollow;
    }

    public void setFollow(boolean follow) {
        isFollow = follow;
    }

    public long getPubTypeId() {
        return pubTypeId;
    }

    public void setPubTypeId(long pubTypeId) {
        this.pubTypeId = pubTypeId;
    }

    public boolean isActive() {
        return isActive;
    }

    public void setActive(boolean active) {
        isActive = active;
    }

    public boolean isSell() {
        return isSell;
    }

    public void setSell(boolean sell) {
        isSell = sell;
    }

    public boolean isCollect() {
        return isCollect;
    }

    public void setCollect(boolean collect) {
        isCollect = collect;
    }

    public boolean isLike() {
        return isLike;
    }

    public void setLike(boolean like) {
        isLike = like;
    }

    public boolean isEnroll() {
        return isEnroll;
    }

    public void setEnroll(boolean enroll) {
        isEnroll = enroll;
    }
    public String getContactPerson() {
        return contactPerson;
    }

    public void setContactPerson(String contactPerson) {
        this.contactPerson = contactPerson;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }


    public String getUniName() {
        return uniName;
    }

    public void setUniName(String uniName) {
        this.uniName = uniName;
    }

    public boolean isLost() {
        return isLost;
    }

    public void setLost(boolean lost) {
        isLost = lost;
    }

    public String getPubDescription() {
        return pubDescription;
    }

    public void setPubDescription(String pubDescription) {
        this.pubDescription = pubDescription;
    }

    public String getUserAvatar() {
        return userAvatar;
    }

    public void setUserAvatar(String userAvatar) {
        this.userAvatar = userAvatar;
    }

    public long getUid() {
        return uid;
    }

    public void setUid(long uid) {
        this.uid = uid;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public int getItemLowPrice() {
        return (int) itemLowPrice;
    }

    public void setItemLowPrice(double itemLowPrice) {
        this.itemLowPrice = itemLowPrice;
    }

    public int getItemHighPrice() {
        return (int) itemHighPrice;
    }

    public void setItemHighPrice(double itemHighPrice) {
        this.itemHighPrice = itemHighPrice;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getPubTitle() {
        return pubTitle;
    }

    public void setPubTitle(String pubTitle) {
        this.pubTitle = pubTitle;
    }

    public String getPubShortDesc() {
        return pubShortDesc;
    }

    public void setPubShortDesc(String pubShortDesc) {
        this.pubShortDesc = pubShortDesc;
    }

    public String getPubShortCover() {
        return pubShortCover;
    }

    public void setPubShortCover(String pubShortCover) {
        this.pubShortCover = pubShortCover;
    }

    public String getStudyHost() {
        return studyHost;
    }

    public void setStudyHost(String studyHost) {
        this.studyHost = studyHost;
    }

    public long getStartTime() {
        return startTime;
    }

    public void setStartTime(long startTime) {
        this.startTime = startTime;
    }

    public long getEndTime() {
        return endTime;
    }

    public void setEndTime(long endTime) {
        this.endTime = endTime;
    }

    public String getPubAddr() {
        return pubAddr;
    }

    public void setPubAddr(String pubAddr) {
        this.pubAddr = pubAddr;
    }

    public String getRollImgs() {
        return rollImgs;
    }

    public void setRollImgs(String rollImgs) {
        this.rollImgs = rollImgs;
    }

    public int getPubType() {
        return pubType;
    }

    public void setPubType(int pubType) {
        this.pubType = pubType;
    }


    public boolean isReport() {
        return isReport;
    }

    public void setReport(boolean report) {
        isReport = report;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    @Override
    public boolean equals(Object obj) {
        UcityInfoBean ucityInfoBean = (UcityInfoBean) obj;
        if (id == ucityInfoBean.getId()){
            return true;
        }
        return false;
    }
}